<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	pageContext.setAttribute("path", request.getContextPath());
%>
<!DOCTYPE html   PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>分类管理</title>
<link href="${path}/css/bootstrap.min.css" rel="stylesheet">
<link href="${path}/css/metisMenu.min.css" rel="stylesheet" />
<link href="${path}/css/dataTables.bootstrap.css" rel="stylesheet" />
<link href="${path}/css/sb-admin-2.css" rel="stylesheet" />
<link href="${path}/css/font-awesome.min.css" rel="stylesheet"
	type="text/css" />
<link href="${path}/css/boot-crm.css" rel="stylesheet" type="text/css" />

<script src="${path}/js/jquery-1.11.3.min.js"></script>

<script src="${path}/js/bootstrap.min.js"></script>

<script src="${path}/js/metisMenu.min.js"></script>

<script src="${path}/js/jquery.dataTables.min.js"></script>
<script src="${path}/js/dataTables.bootstrap.min.js"></script>

<script src="${path}/js/sb-admin-2.js"></script>
<div id="wrapper">
	<nav class="navbar navbar-default navbar-static-top" role="navigation"
		style="margin-bottom: 0">
	<div class="navbar-header">
		<a class="navbar-brand" href="#">后台管理系統</a>
	</div>
	<!-- 导航栏右侧图标部分 -->
	<ul class="nav navbar-top-links navbar-right">
		<!-- 邮件通知 start -->
		<li class="dropdown"><a class="dropdown-toggle"
			data-toggle="dropdown" href="#"> <i class="fa fa-envelope fa-fw"></i>
				<i class="fa fa-caret-down"></i>
		</a>
			<ul class="dropdown-menu dropdown-messages">



			</ul></li>
		<!-- 邮件通知 end -->
		<!-- 任务通知 start -->
		<li class="dropdown"><a class="dropdown-toggle"
			data-toggle="dropdown" href="#"> <i class="fa fa-tasks fa-fw"></i>
				<i class="fa fa-caret-down"></i>
		</a>
			<ul class="dropdown-menu dropdown-tasks">

			</ul></li>
		<!-- 任务通知 end -->
		<!-- 消息通知 start -->
		<li class="dropdown"><a class="dropdown-toggle"
			data-toggle="dropdown" href="#"> <i class="fa fa-bell fa-fw"></i>
				<i class="fa fa-caret-down"></i>
		</a>
			<ul class="dropdown-menu dropdown-alerts">



			</ul></li>
		<!-- 消息通知 end -->
		<!-- 用户信息和系统设置 start -->
		<li class="dropdown"><a class="dropdown-toggle"
			data-toggle="dropdown" href="#"> <i class="fa fa-user fa-fw"></i>
				<i class="fa fa-caret-down"></i>
		</a></li>
		<ul class="">
			<li><a href="#"><i class="fa fa-user fa-fw"></i>
					用户：${ADMIN_SESSION.adminname} </a></li>
			<li><a href="#"><i class="fa fa-gear fa-fw"></i> 系统设置</a></li>
			<li class="divider"></li>
			<li><a href="${path}/logout.action"> <i
					class="fa fa-sign-out fa-fw"></i>退出登录
			</a></li>
		</ul>
		<!-- 用户信息和系统设置结束 -->
	</ul>
	<!-- 左侧显示列表部分 start-->
	<div class="navbar-default sidebar" role="navigation">
		<div class="sidebar-nav navbar-collapse">
			<ul class="nav" id="side-menu">
				<li class="sidebar-search">
					<div class="input-group custom-search-form">
						<input type="text" class="form-control" placeholder="查询内容...">
						<span class="input-group-btn">
							<button class="btn btn-default" type="button">
								<i class="fa fa-search" style="padding: 3px 0 3px 0;"></i>
							</button>
						</span>
					</div>
				</li>
				<li><a href="${path}/user/userInfo" class="active"> <i
						class="fa fa-edit fa-fw"></i>用户管理
				</a></li>
				<li><a href="${path}/fenleiguanli"> <i
						class="fa fa-dashboard fa-fw"></i>分类管理
				</a></li>
				<li><a href="${path}/shangpinguanli"> <i
						class="fa fa-dashboard fa-fw"></i>商品管理
				</a></li>
			</ul>
		</div>
	</div>
	<!-- 左侧显示列表部分 end--> </nav>
	<div id="page-wrapper">
		<div class="row">
			<div class="col-md-12">
				<h1>分类管理</h1>
			</div>
		</div>
		<div class="panel panel-default">
			<div class="panel-body">
				<!-- 根据XX查询 -->
				<form action="fenleiguanlichaxunByLike">
					I&nbsp;&nbsp;D：<input type="number" name="type_id"><br>
					姓名：<input type="text" name="type_name"><br> <input
						type="submit" class="btn btn-primary" value="查询">
				</form>
			</div>
		</div>
		<!-- 查询所有 -->
		<table class="table table-hover" border="1">
			<tr>
				<th>Type_id</th>
				<th>Type_name</th>
				<th colspan="2">操作</th>
			</tr>
			<c:forEach var="type" items="${queryGoods_type}">
				<tr>
					<td><a type="text">${type.typeId}</a></td>
					<td><a type="text">${type.typeName}</a></td>
					<td><a href="fenleiguanlixiugai?id=${type.typeId}">修改</a></td>
					<td><a href="fenleiguanlishanchu?id=${type.typeId}">删除</a></td>
				</tr>
			</c:forEach>
		</table>
	</div>
</div>
</head>
<body>

</body>
</html>